body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to right, #e0f7fa, #ede7f6);
  margin: 0;
  padding: 2rem;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #673ab7;
}

.task-input {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.task-input input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.task-input button {
  padding: 0.6rem 1rem;
  background-color: #673ab7;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.task-input button:hover {
  background-color: #5e35b1;
}

#task-list {
  list-style: none;
  padding: 0;
}

#task-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  margin-bottom: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

#task-list li.completed {
  text-decoration: line-through;
  color: #999;
  opacity: 0.6;
}

.task-actions button {
  margin-left: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #d32f2f;
  font-weight: bold;
}

.stats {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}
